# $OpenBSD: Makefile,v 1.12 2017/05/31 08:08:17 espie Exp $

COMMENT =	website access log visualization

DISTNAME =	logstalgia-1.0.7
CATEGORIES =	sysutils graphics
HOMEPAGE =	http://logstalgia.io/

MAINTAINER =	Gonzalo L. R. <gonzalo@openbsd.org>

# GPLv3
PERMIT_PACKAGE_CDROM =	Yes

MASTER_SITES =	https://github.com/acaudwell/Logstalgia/releases/download/${DISTNAME}/

WANTLIB += GL GLEW GLU SDL2 SDL2_image c freetype iconv m pcre png pthread
WANTLIB += z ${LIBECXX}

COMPILER =	gcc

CONFIGURE_STYLE =gnu
CONFIGURE_ENV=	CPPFLAGS="-I${X11BASE}/include" \
		LDFLAGS="-L${X11BASE}/lib"

BUILD_DEPENDS =	graphics/glm \
		devel/boost

LIB_DEPENDS =	converters/libiconv \
		graphics/glew \
		devel/pcre \
		devel/sdl2-image

post-install:
	@gzip -d ${PREFIX}/man/man1/logstalgia.1.gz

.include <bsd.port.mk>
